package manage.model;

import m.common.model.TableMeta;
import m.common.model.util.ModelQueryUtil;
import m.system.cache.FlushCache;

@TableMeta(name="v_org_group",description="机构视图",isView = true,
	viewSql = "select * from os_admin_group where type='C'")
public class OrgGroupView extends AdminGroup implements FlushCache {
	private static final long serialVersionUID = 1L;

	@Override
	public OrgGroupView getCacheModel(String key) throws Exception {
		OrgGroupView org=new OrgGroupView();
		org.setOid(key);
		org=ModelQueryUtil.getModel(org,1);
		return null==org?new OrgGroupView():org;
	}
}
